﻿
namespace MyFramework.Common.Interfaces
{
    /// <summary>
    /// Interface model
    /// </summary>
    public interface IModel : IEntity
    {
        /// <summary>
        /// Gets or sets the setting.
        /// </summary>
        /// <value>
        /// The setting.
        /// </value>
        ISettings Setting { get; set; }

        /// <summary>
        /// Saves the settings.
        /// </summary>
        void SaveSettings();

        /// <summary>
        /// Loads the settings.
        /// </summary>
        void LoadSettings();

        /// <summary>
        /// Determines whether this instance is valid.
        /// </summary>
        /// <returns></returns>
        bool IsValid();
    }
}
